//
//  CStringUtil.h
//  NinjaTurtle
//
//  Created by Nguyen Tri Chung on 1/6/15.
//
//

#ifndef __NinjaTurtle__CStringUtil__
#define __NinjaTurtle__CStringUtil__

#include <stdio.h>
#include "cocos2d.h"
#include "../global/global.h"

USING_NS_CC;
using namespace std;

class CStringUtil {
public:
    static vector<string> split(const string &s, char delim);
    static string getPattern(const string &s);
    static string readFile(std::string fileName, bool writeable, bool override, bool encrypt);
    static void writeFile(std::string data, std::string fileName, bool encrypt);
    static std::string encrypt(std::string toEncrypt);
    static std::string decrypt(std::string toDecrypt);
    static long getCurrentTimeInSeconds();
};


#endif /* defined(__NinjaTurtle__CStringUtil__) */
